package com.lc.luzhengtang.conn;

/**
 * Created by Administrator on 2017/6/23.
 */

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.MyShopBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;


@HttpInlet(Conn.PERSONAL_SHOP_BANNER)
public class ConnMyShopBanner extends BaseAsyPost<MyShopBean> {
    public String goodstype_id;

    public ConnMyShopBanner(String goodstype_id, AsyCallBack<MyShopBean> asyCallBack) {
        super(asyCallBack);
        this.goodstype_id = goodstype_id;
    }

    @Override
    protected MyShopBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "000000000000000000");
        Log.d(object.toString(), "000000000000000000");
        Gson gson = new Gson();
        MyShopBean myShopBean = new MyShopBean();

        myShopBean = gson.fromJson(object.toString(), MyShopBean.class);

        return myShopBean;

    }
}
